#ifndef __CROP_H__
#define __CROP_H__

#include <iostream>
#include <fstream>
#include <string>
#include <map>

#include "bayesianclustering.h"

using namespace std;

const int ReadSize = 2000;
extern int Block[20];
extern int step;
extern bool ctrl;
extern int MaxiterBlockSize;
extern BayesianClusteringResult** BlockResult;
extern int SeqNum;
extern int UniqueSeqNum;
extern int PrevIterk;
extern int Finalk;
extern int Maxiter;
extern string* FinalCenterID;
extern string* FinalCenterSeq;
extern double* FinalSD;
extern int* FinalSize;
extern string** FinalMembership;
extern map<string,string> List;

bool ChompFile(const char*, int);
bool ChompFile(int);
//void MergeResult(int);
int LoadingList(const char*);
void MergeUsingBC();
void InterResultRead(int);
int CROP(const char*, const char*, int, int, bool, int ,int);

#endif //ifndef _CROP_H
